package com.ruoyi.project.info.appointment.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 预约信息对象 appointment
 *
 * @author wzm
 * @date 2022-09-07
 */
public class Appointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;
    @Excel(name = "患者姓名")
    private String pName;
    /** 患者手机号 */
    @Excel(name = "患者手机号")
    private String pPhone;
    /** 患者手机号 */

    /** 患者身份证号 */
    private String idCard;
    /** 医生手机号 */
    @Excel(name = "医生姓名")
    private String dName;
    /** 医生手机号 */
    @Excel(name = "医生手机号")
    private String dPhone;



    /** 预约医院 */
    private Long deptId;

    private int age;

    private String address;

    private String sex;

    /** 预约状态 */
    @Excel(name = "预约状态", readConverterExp = "0=预约,1=到院")
    private String state;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentDate;

    /** 到院时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到院时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkDate;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 花费金额 */
    @Excel(name = "花费金额")
    private BigDecimal amount;

    /** 返佣比例 */
    private BigDecimal discount;

    /** 返佣金额 */
    private BigDecimal kickback;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setpPhone(String pPhone)
    {
        this.pPhone = pPhone;
    }

    public String getpPhone()
    {
        return pPhone;
    }
    public void setdPhone(String dPhone)
    {
        this.dPhone = dPhone;
    }

    public String getdPhone()
    {
        return dPhone;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setAppointmentDate(Date appointmentDate)
    {
        this.appointmentDate = appointmentDate;
    }

    public Date getAppointmentDate()
    {
        return appointmentDate;
    }
    public void setCheckDate(Date checkDate)
    {
        this.checkDate = checkDate;
    }

    public Date getCheckDate()
    {
        return checkDate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setDiscount(BigDecimal discount)
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount()
    {
        return discount;
    }
    public void setKickback(BigDecimal kickback)
    {
        this.kickback = kickback;
    }

    public BigDecimal getKickback()
    {
        return kickback;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pPhone", getpPhone())
            .append("dPhone", getdPhone())
            .append("deptId", getDeptId())
            .append("state", getState())
            .append("appointmentDate", getAppointmentDate())
            .append("checkDate", getCheckDate())
            .append("delFlag", getDelFlag())
            .append("amount", getAmount())
            .append("discount", getDiscount())
            .append("kickback", getKickback())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
